{% extends 'layout/basic.html' %}
{% load static %}

{% block title %} 套餐 {% endblock %}

{% block css %}
    <style>
        .slogan {
            font-size: 36px;
            text-align: center;
            margin: 50px 0;
        }

    </style>
{% endblock %}

{% block content %}
    <div class="container">
     {% for item in policy_list %}
        {% if item.title == "您的套餐已过期" or item.title == "请你选择合适的套餐" or item.title == "多种方案，使用多种场景" or item.title == "您的套餐未到期" %}
        <div class="slogan">{{ item.title }}</div>
         {% endif %}
    {% endfor %}
        <div class="row">

            {% for item in policy_list %}
                {%  if item.title != "您的套餐已过期"  %}
               {%  if item.title != "请你选择合适的套餐"  %}
                   {%  if item.title != "您的套餐未到期"  %}
                         {%  if item.title != "多种方案，使用多种场景"  %}
                <div class="col-md-4">
                    <div class="panel panel-default">
                        <div class="panel-heading" style="text-align: center;">{{ item.title }}</div>
                        <div class="panel-body">

                            <p style="text-align: center;font-size: 25px;">
                                ¥ {{ item.price }}
                            </p>

                        </div>
                        <ul class="list-group">
                            <li class="list-group-item">
                                <form class="form-inline" method="get" action="{% url 'web:payment' policy_id=item.id %}">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <div class="input-group-addon">数量</div>
                                            <input type="number" name="number" value="0" class="form-control"
                                                   placeholder="购买数量">
                                            <div class="input-group-btn">
                                                <input type="submit" value="立即购买" class="btn btn-primary">
                                            </div>
                                        </div>
                                    </div>
                                </form>
                            </li>
                            <li class="list-group-item">最大支持人数:200人</li>
                            <li class="list-group-item">最大支持问题11个</li>
                        </ul>
                    </div>
                </div>
                       {% endif %}
{% endif %}
                     {% endif %}
            {% endif %}
            {% endfor %}



        </div>
    </div>

{% endblock %}